home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-26 | 2.2 KB | 55 lines | [TEXT/R*ch] |
- Quick introduction to using TWIT 0.2.
- -------------------------------------
-
- Major changes since 0.1 (dated 25-09-96):
- - You can now debug FrameWork applications
- - Various buttons have been replaced by menu items
-
- Note that this is a "public alpha" release: quite a few things need cleaning
- up, especially in the user interface. Some features do not work or
- even crash twit (notably the "About twit" dialog) since they need features that
- are not in the 1.4b3 distribution. Also note that newer versions of bdb.py and
- FrameWork.py are included in this distribution.
-
- Starting:
- - To start debugging a program run twit (either the applet or the script twit.py).
- - Use "Run command" or "Run File" to run a statement or file.
- - Double-clicking a Python file while the debugger is running should automatically
- debug the file.
-
- Postmortem debugging:
- - import twit
- - twit.pm()
-
- PM debugging has a few problems, foremost that you do not currently see the
- exception.
-
- Display:
-
- The main window has a stacktrace at top-left, local variable display top-right
- (use the toggles at the bottom to select which local variables to display) and a
- source browser at the bottom. Select a stack frame to see its variables.
- Double-click a variable to open a variable browser.
-
- The "browser" button will open the module browser window on the current module
- (if there is one).
-
- The source browser section shows the current file (if there is any). Selecting a
- line and pressing "edit" will fire up the MetroWerks editor on that line.
- Clicking in the bar left of the source line will set/clear breakpoints. The
- "current line" indicator is also shown here, with different icons for program
- state (stopped, calling, returning, exception).
-
- The module browser window is vaguely similar to the main window, but without the
- control buttons and with module-global variables top-right. Select a module
- to display its variables, double-click a variable to start a variable browser.
-
- The variable browser is quite different (having been written by Just, not me),
- but use is intuitive. The one non-intuitive thing is that you have to
- update it manually (unlike the other two windows).
-
-
- Jack Jansen, <jack@cwi.nl>, 26-09-96.
- Twit can be found at <ftp://ftp.cwi.nl/pub/jack/python/mac>.
-
-